package priv.conceit.sc.hoxton.auth.authority.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import priv.conceit.sc.hoxton.auth.authority.dao.RoleMapper;
import priv.conceit.sc.hoxton.auth.authority.service.RoleService;
import priv.conceit.sc.hoxton.common.entity.auth.authority.pojo.Role;

import java.util.List;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author conceit
 * @since 2020-11-20
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {


	@Autowired
	private RoleMapper roleMapper;


	/**
	 * load 根据用户id集合加载对应的角色列表
	 *
	 * @param userIds
	 * @return java.util.List<priv.conceit.sc.hoxton.common.entity.auth.authority.pojo.Role>
	 * @author conceit
	 * @date 2020/11/24 9:52
	 */
	@Override
	public List<Role> load(List<Long> userIds) {
		return roleMapper.load(userIds);
	}
}
